package com.emcom.gotour.mvc.message;

import javax.servlet.http.HttpServletRequest;

import org.springframework.context.MessageSource;

import com.emcom.gotour.utils.LocaleUtils;

public enum TourMessage {
	ID("tour.content.id"),
	TypeName("tour.content.typeName"),
	Category("tour.content.category"),
	Subject("tour.content.subject"),
	Aim("tour.content.aim"),
	Characteristic("tour.content.characteristic"),
	Location("tour.content.location"),
	Days("tour.content.days"),
	Cost("tour.content.cost"),
	CostComments("tour.content.costComments"),
	CostStandard("tour.content.costStandard"),
	CostNotice("tour.content.costNotice"),
	Attention("tour.content.attention"),
	Statement("tour.content.statement"),
	Comments("tour.content.comments"),
	IsAd("tour.content.isAd"),
	AdImageUrl("tour.content.adImageUrl"),
	IsImage("tour.content.isImage"),
	ImageUrl("tour.content.imageUrl");
	private String message;
	private TourMessage(String message) {
		this.message = message;
	}
	public String value(HttpServletRequest request, MessageSource messageSource) {
		return messageSource.getMessage(message, null, LocaleUtils.getLocale(request));
	}
}
